package com.example.mybatisinterceptor.user.controller;

import com.example.mybatisinterceptor.common.page.PagedList;
import com.example.mybatisinterceptor.user.dto.QuerySysUserDTO;
import com.example.mybatisinterceptor.user.entity.SysUser;
import com.example.mybatisinterceptor.user.service.SysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author JiangMing Zhou
 * @date 2024/3/5 15:28
 * @jdk 1.8
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {
    @Resource
    private SysUserService sysUserService;


    @GetMapping("/queryPage")
    public PagedList<SysUser> queryPage(QuerySysUserDTO querySysUserDTO) {
        return sysUserService.selectPage(querySysUserDTO);
    }

}
